package com.csnf.service.impl;

import com.csnf.mapper.AccountMapper;
import com.csnf.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    AccountMapper accountMapper;

    @Transactional
    @Override
    public int updateAccount(String userId, int money) {
        return accountMapper.updateAccount(userId, money);
    }
}
